import request from '@/utils/request.js'
import { useTokenStore } from '@/stores/token.js'
//提供调用用户分页查询接口的函数
export const repairPageQueryService = (params)=>{
    return request.get('/admin/repairman/page',{params: params});
}
//修改个人信息
export const repairInfoUpdateService = (userInfoData)=>{
    return request.put('/admin/repairman',userInfoData)
}
 //修改个人信息
export const repairDeleteService = (id)=>{
    return request.delete('/admin/repairman/' + id)
 }
  //获取个人信息
export const repairInfoGetService = (id)=>{
    return request.get('/admin/repairman/' + id)
}

//注册
  export const repairRegisterService = (registerData)=>{
    return request.post('/admin/repairman/register', registerData)
}

export const repairStatisticAllService = ()=>{
    return request.get('/admin/repairman/statisticAll')
}

//重置密码
export const repairPasswordResetService = (id)=>{
    return request.put('/admin/repairman/resetPassword/' + id)
}